﻿@using System.Web.Mvc.Html;
@using System.Web.WebPages.Html;
@using System.Web.Mvc;

@helper Start()
{
    <text><div class="DataGrid"></text>
}

@helper End()
{
    @:  </div>

}

@helper HeaderStart()
{
    <text> 
    <div class="DataGridHeader">
        <div class="DataGridContent">
            <table cellpadding="0" cellspacing="0" class="DataGridHeaderTable">
                <tr>
</text>
}

@helper HeaderEnd()
{
               @: </tr>
        @:    </table>
    @:    </div>
   @: </div>
}

@helper HeaderItem(string content, string cssClass= "")
{
    <text>
    <td class="@cssClass DataGridTh">
        <table class="DataGridThHoverGrid" style="width:100%; overflow:hidden;table-layout :fixed">
            <tr>
                <td>   
                    <div class="TdContent">
                        <div class="TdContentText">
                            @content
                        </div>
                    </div>
                </td>
                <td class="hiddenTd"></td>
            </tr>
        </table>
     
    </td>
    </text>
}

@helper BodyStart()
{
    <text>
        <div class="DataGridTableScroll">
            <table cellpadding="0" cellspacing="0"  class="DataGridTable">
    </text>
}

@helper BodyEnd()
{
    @:</table>
    @:</div>
}

@helper LineStart()
{
    <text>
    <tr>
    </text>
}

@helper LineEnd()
{
    @:<!--[if lte IE 8]><td style='width:15px;background:black;height:20px'></td><![endif]--></tr>
    
}

@helper Item(string content, string cssClass = "")
{
    <text>
    <td class="@cssClass">
        <div class="TdContent">
            <div class="TdContentText">
                @content
            </div>
        </div>
    </td>
    </text>
}